package com.wmm.fast.main.shop2Builder;

/**
 * @Auther: Token360
 * @Date: 2018/9/10 14:32
 * @Description:
 */
public class BuildDirector {

    private AbstractBuild abstractBuild;

    public BuildDirector(AbstractBuild abstractBuild) {
        this.abstractBuild = abstractBuild;
    }

    public Product build() {
        abstractBuild.buildPartA();
        abstractBuild.buildPartB();
        abstractBuild.buildPartC();
        return abstractBuild.getResult();
    }


}
